package com.example.scaloovka;

public class ScalesMap {

	private double[] scales;
	private Double scale;
	private Double value;
	private int currentUnitsPostion;
	
	public Double getScale() {
		return scale;
	}

	public void setScale(Double scale) {
		this.scale = scale;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public int getCurrentUnitsPostion() {
		return currentUnitsPostion;
	}

	public void setCurrentUnitsPostion(int currentUnitsPostion) {
		this.currentUnitsPostion = currentUnitsPostion;
	}

	private static ScalesMap instance;

	private ScalesMap() {
		this.scales = new double[] { 10.0, 20.0, 50.0, 100.0 };
		this.scale = Double.valueOf(1);
		this.value = Double.valueOf(0);
		this.currentUnitsPostion=0;
	}

	public static ScalesMap getInstance() {
		if (instance == null)
			instance = new ScalesMap();
		return instance;
	}

	public double[] getScales() {
		return scales;
	}

	public void setScales(double[] scales) {
		this.scales = scales;
	}

}
